package com.hospital.domain.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("patient")
public class Patient {
    @TableId(value = "pid", type = IdType.AUTO)
    private Integer pId;
    private String pName;
    private String pCardId;
    private String pPhone;
    private String pPw;
    private LocalDateTime pCreateTime;
    private Integer pState;

    public Patient(String pName, String pCardId, String pPhone, String pPw, Integer pState) {
        this.pName = pName;
        this.pCardId = pCardId;
        this.pPhone = pPhone;
        this.pPw = pPw;
        this.pState = pState;
    }
}
